package com.example.interview.Thread;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:TQ02
 * Data:2024-07-10
 * Time:21:27
 * Text：
 */
public class MyRunnable implements Runnable {
    public void run() {
        // 线程的主体逻辑
        System.out.println("Runnable running");
    }

    public static void main(String[] args) {
        MyRunnable myRunnable = new MyRunnable();
        Thread thread = new Thread(myRunnable);
        thread.start(); // 启动线程
    }
}

